package com.kerrykidz.filemanagement.dao.model;

import java.text.ParseException;
import java.util.Date;

import com.kerrykidz.system.util.DateUtil;
import com.rdp.framework.exception.RDPException;
import com.rdp.util.time.DateFormatUtil;

public class HisTicketEntity {
    private String pkMemhisId;

    private String fkMemId;

    private String hisType;

    private String fkOrderId;

    private String contactPath;

    private String disclaimerPath;

    private String modifyTimePage;

    private Date modifyTime;
    
    private String usedStatus;
    
    private String memName;
    
    private String prdName;
    
    private int chdCnt;
    
    private String fkPrdId;

	public String getFkPrdId() {
		return fkPrdId;
	}

	public void setFkPrdId(String fkPrdId) {
		this.fkPrdId = fkPrdId;
	}

	public int getChdCnt() {
		return chdCnt;
	}

	public void setChdCnt(int chdCnt) {
		this.chdCnt = chdCnt;
	}

	public String getPrdName() {
		return prdName;
	}

	public void setPrdName(String prdName) {
		this.prdName = prdName;
	}

	public String getPkMemhisId() {
        return pkMemhisId;
    }

    public void setPkMemhisId(String pkMemhisId) {
        this.pkMemhisId = pkMemhisId;
    }

    public String getFkMemId() {
        return fkMemId;
    }

    public void setFkMemId(String fkMemId) {
        this.fkMemId = fkMemId;
    }

    public String getHisType() {
        return hisType;
    }

    public void setHisType(String hisType) {
        this.hisType = hisType;
    }

    public String getFkOrderId() {
        return fkOrderId;
    }

    public void setFkOrderId(String fkOrderId) {
        this.fkOrderId = fkOrderId;
    }

    public String getContactPath() {
        return contactPath;
    }

    public void setContactPath(String contactPath) {
        this.contactPath = contactPath;
    }

    public String getDisclaimerPath() {
        return disclaimerPath;
    }

    public void setDisclaimerPath(String disclaimerPath) {
        this.disclaimerPath = disclaimerPath;
    }

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getUsedStatus() {
		return usedStatus;
	}

	public void setUsedStatus(String usedStatus) {
		this.usedStatus = usedStatus;
	}
	
	public String getMemName() {
		return memName;
	}

	public void setMemName(String memName) {
		this.memName = memName;
	}

	public void setModifyTimePage(String modifyTimePage) throws ParseException {
		this.modifyTimePage = modifyTimePage;
		try {
			modifyTimePage=DateUtil.formatStrToStr(modifyTimePage, "yyyy-MM-dd HH:mm:ss.0", "yyyy-MM-dd");
			this.modifyTime = DateFormatUtil.convertStrToDate(modifyTimePage, "yyyy-MM-dd");
		} catch (RDPException e) {
			e.printStackTrace();
		}
	}
	
	public String getModifyTimePage() {
		if (this.modifyTime != null) {
			return DateFormatUtil.format(this.modifyTime, "yyyy-MM-dd");
		}
		return "";
	}
}